Python Imaging Library (abbreviated as PIL) is an external library for the Python programming language that adds support for opening, manipulating, and saving many different image file formats. Supports Python 2.2-2.7.
It is freely available under the Python Imaging Library license, a permissive free software license.
Some of the file formats supported include PNG, JPEG, GIF, TIFF, and BMP. It is also possible to create new file decoders to expand the library of file formats accessible.